package mesweb.mesweb.service.impl.wms;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import mesweb.mesweb.entity.wms.WMSStock;
import mesweb.mesweb.mapper.wms.WMSStockMapper;
import mesweb.mesweb.service.wms.IWMSStockService;
import mesweb.mesweb.vo.produce.StockMaterialVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 库存表
 * @Author: jeecg-boot
 * @Date:   2021-12-20
 * @Version: V1.0
 */
@Service
public class WMSStockServiceImpl extends ServiceImpl<WMSStockMapper, WMSStock> implements IWMSStockService {


    @Autowired
    private WMSStockMapper wmsStockExMapper;
    @Override
    public IPage<StockMaterialVo> getMaterials(Page page, QueryWrapper queryWrapper) {
        return wmsStockExMapper.getMaterials(page,queryWrapper);
    }

    @Override
    public List<StockMaterialVo> getMaterials(QueryWrapper queryWrapper) {
        return wmsStockExMapper.getMaterials(queryWrapper);
    }
}
